package cn.itcast.bos.transit.service.impl;


import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.itcast.bos.domain.transit.InOutStorageInfo;
import cn.itcast.bos.domain.transit.TransitInfo;
import cn.itcast.bos.transit.dao.TransitInfoDao;
import cn.itcast.bos.transit.service.TransitInfoService;

@Service
@Transactional
public class TransitInfoServiceImpl implements TransitInfoService {
	private Logger logger=LoggerFactory.getLogger(getClass());
	@Autowired
	private TransitInfoDao transitInfoDao;
	@Override
	public Page<TransitInfo> getTransitInfo(Pageable pageable) {
		// TODO Auto-generated method stub
		 Page<TransitInfo> page = transitInfoDao.findAll(pageable);
		 logger.info("查询所有transitInfo");
		 return page;
	}

}
